package com.dirk.happie.beans;

public class BasketItem {
	private String count;
	private String name;
	private String size;
	private String price;
	private String idArticle;
	private String idOption;
	private String idExtra;
	private String type;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getIdArticle() {
		return idArticle;
	}

	public void setIdArticle(String idArticle) {
		this.idArticle = idArticle;
	}

	public String getIdExtra() {
		return idExtra;
	}

	public void setIdExtra(String idExtra) {
		this.idExtra = idExtra;
	}
	
	public String getIdOption() {
		return idOption;
	}

	public void setIdOption(String idOption) {
		this.idOption = idOption;
	}

	public BasketItem() {
		super();
	}

	public BasketItem(ArticleBean bean) {
		super();
		this.count = "1";
		this.name = bean.getArticleName();
		this.size = bean.getArticleSize();
		this.price = bean.getArticlePrice();
		this.idArticle = bean.getArticleId();
		this.idOption = bean.getOptionId();
		this.idExtra = "";
		this.type = bean.getType();
	}
	
	public BasketItem(ExtraBean bean) {
		super();
		this.count = "1";
		this.name = bean.getExtraDescription();
		this.price = bean.getExtraPrice();
		this.idArticle = bean.getIdArticle();
		this.idExtra = bean.getIdExtra();
		this.type = bean.getType();
		this.idOption = bean.getIdOption();
	}
}